package com.example.visitorpattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/25  15:52:32
 * @className ConreteVisitor1
 * @verson 1.0.0
 */
public class ConcreteVisitor1 extends Visitor {

    @Override
    public void visitorConcreteElement1(ConcreteElement1 concreteElement1) {
        System.out.println("访问者1" + concreteElement1.getClass().getName());
    }

    @Override
    public void visitorConcreteElement2(ConcreteElement2 concreteElement2) {
        System.out.println("访问者1" + concreteElement2.getClass().getName());
    }
}
